package com.app.service;

import com.app.model.GoodsExchangeModel;
import com.app.model.GoodsModel;
import com.app.model.StudyModel;
import com.app.vo.GoodsVo;
import com.app.vo.OrderVo;

import java.text.ParseException;
import java.util.List;

public interface GoodsAdminService {
    void insert(GoodsModel goods);

    void updateById(GoodsModel goods);

    void deleteGoodsById(Integer id);

    GoodsVo selectGoodsList(Integer page, Integer limit, String name, Integer villageId);

    GoodsModel selectGoodsTitle(Integer villageId);

    OrderVo selectOrderList(Integer page, Integer limit, String keyword, Integer id, Integer villageId);

    GoodsExchangeModel WriteOff(Integer id, Integer status, String exchangeTime) throws ParseException;

    GoodsModel selectGoodsById(Integer id);

    GoodsModel selectGoodsInfo(Integer id);
}
